DEFINITION MODULE       speech;

(*         USE THIS MODULE ONLY WITHIN A GEM APPLICATION                *)
(* This module uses the sound chip as a speech synthesizer.             *)
(* The executable file SPEECH.EXE must be in same directory as the      *)
(* program. To use first call initspeechmodule once at the start        *)
(* then use say to speak your text. setpitch and setrate are optional   *)
(*                                                                      *)
(*              EXAMPLE                                                 *)  (*      ok:=initspeechmodule();                                         *)  (*      IF ok THEN                                                      *)
(*         say("this is ok");                                           *)
(*      END                                                             *)

PROCEDURE       initspeechmodule() : BOOLEAN;

PROCEDURE       setpitch(pitch: CARDINAL);      (* range 0..100 *)

PROCEDURE       setrate(rate: CARDINAL);        (* range 0..100 *)

PROCEDURE       say(VAR text: ARRAY OF CHAR);

END                     speech.
